import request from '@/utils/request'

// 查询公司钱包列表
export function listWalletCompany(query) {
  return request({
    url: '/consumer/walletCompany/list',
    method: 'get',
    params: query
  })
}

// 查询公司钱包详细
export function getWalletCompany(walletPersonId) {
  return request({
    url: '/consumer/walletCompany/' + walletPersonId,
    method: 'get'
  })
}

// 新增公司钱包
export function addWalletCompany(data) {
  return request({
    url: '/consumer/walletCompany',
    method: 'post',
    data: data
  })
}

// 修改公司钱包
export function updateWalletCompany(data) {
  return request({
    url: '/consumer/walletCompany',
    method: 'put',
    data: data
  })
}

// 删除公司钱包
export function delWalletCompany(walletPersonId) {
  return request({
    url: '/consumer/walletCompany/' + walletPersonId,
    method: 'delete'
  })
}
